package com.order.mapper;

import com.order.dao.Cart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CartMapper {
     int addCart(Cart cart);
     int updateCart(Cart cart);
     int deleteCart(int desk_id);
     int deleteCartById(int id);
     Cart getById(int id);
     int judgeExit(Map<String,Object> map);
     Cart getCart(Map<String,Object> map);
     List<Cart> getCarts(int desk_id);
}
